package control;

import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;

import javax.swing.AbstractAction;


import view.LibraryMainJFrame;
import view.LibraryMainJPanel;
import view.components.Icons;

@SuppressWarnings("serial")
public class OpenMainMenuAction extends AbstractAction {
	private LibraryMainJFrame frame;
	public OpenMainMenuAction(LibraryMainJFrame frame) {
		super("Start", Icons.HOME);
		putValue(MNEMONIC_KEY, KeyEvent.VK_T);
		this.frame = frame;
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		frame.openContentPanel(new LibraryMainJPanel(frame));
	}

}
